﻿namespace BToolkit
{
    public class ProtoBase
    {
        /// <summary>
        /// 协议ID
        /// </summary>
        public int id;

        /// <summary>
        /// -1全网(排除自己) 0全网(包括自己) >=0指定目标
        /// </summary>
        public int targetType;

        /// <summary>
        /// 客户端不用赋值，服务端会赋值后发回
        /// </summary>
        public int fromPeerId;

        /// <summary>
        /// 指定目标(仅targetType>=0时有效)
        /// </summary>
        public int toPeerId;

        /// <summary>
        /// 子数据
        /// </summary>
        public string data;
    }
}
